<?php

$bad = [];
$is = mb_eregi($bad, $str, $out);